package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 实体类
 * 名品名店商品评价表
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopCommentPageDTO", description = "名品名店商品评价表")
public class ShopCommentPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long id;
    /**
     * 客户id
     */
    @ApiModelProperty(value = "客户id")
    @NotNull(message = "客户id不能为空")
    private Long customerId;
    /**
     * 产品id
     */
    @ApiModelProperty(value = "产品id")
    @NotNull(message = "产品id不能为空")
    private Long productId;
    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    @NotNull(message = "订单id不能为空")
    private Long orderId;
    /**
     * 所属商户id
     */
    @ApiModelProperty(value = "所属商户id")
    @NotNull(message = "所属商户id不能为空")
    private Long merchantId;
    /**
     * 商品评分 1-好评 2-中评 3-差评
     */
    @ApiModelProperty(value = "商品评分 1-好评 2-中评 3-差评")
    private Integer score;
    /**
     * 评价内容
     */
    @ApiModelProperty(value = "评价内容")
    @Length(max = 1000, message = "评价内容长度不能超过1000")
    private String content;
    /**
     * 查看次数
     */
    @ApiModelProperty(value = "查看次数")
    private Integer viewNum;
    /**
     * 点赞次数
     */
    @ApiModelProperty(value = "点赞次数")
    private Integer likeNum;
    /**
     * 商家回复
     */
    @ApiModelProperty(value = "商家回复")
    @Length(max = 1000, message = "商家回复长度不能超过1000")
    private String merchantReply;
    /**
     * 评论图片列表
     */
    @ApiModelProperty(value = "评论图片列表")
    @Length(max = 2000, message = "评论图片列表长度不能超过2000")
    private String imgList;
    /**
     * 是否匿名 0-否 1-是
     */
    @ApiModelProperty(value = "是否匿名 0-否 1-是")
    private Integer isAnonymous;
    /**
     * 评论时间
     */
    @ApiModelProperty(value = "评论时间")
    private LocalDateTime createTime;

}
